<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入react的核心包 -->
    <script src="../reactBag/react.development.js"></script>
    <!-- 引入reactDom的包 -->
    <script src="../reactBag/react-dom.development.js"></script>
    <!-- 引入babel解析包 -->
    <script src="../reactBag/babel.min.js"></script>
</head>
<body>
    <div id="app"></div>

    <script type="text/babel">
        // const vDom = React.createElement('h1',{},'Hello React');
        const vDom = (
            <div>
            <h1>Hello</h1>
            <p>ni</p>
            </div>)
        ReactDOM.createRoot(document.getElementById('app')).render(vDom)
    </script>
</body>
</html>